<?php
    
	add_filter('cv_init_options', 'sm_init_options');
	
	function sm_init_options($opt) {
		$limit = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15');
		
		// The social media settings
		$opt[] = array( "name" => __("Social Media", hybrid_get_textdomain()),
							"type" => "heading",
							"icon" => trailingslashit( CVINCLUDES_SOCIALMEDIA_URI ) . 'social-media.png');
		
		$opt[] = array( "name" => __("Twitter url", hybrid_get_textdomain()),
							"desc" => __("Enter your Twitter URL e.g. http://www.twitter.com/yourname.", hybrid_get_textdomain()),
							"id" => "sm_twitter_url",
							"std" => "http://www.twitter.com/yourname",
							"type" => "text"); 
		
		$items = get_theme_support( 'cvincludes-socialmedia' );
		if(isset($items[0])) {
			if ( in_array( 'twitter', $items[0] ) ) {
				$opt[] = array( "name" => __("Twitter items quantity", hybrid_get_textdomain()),
									"desc" => __("The quantity of twitter items", hybrid_get_textdomain()),
									"id" => "sm_twitter_limit",
									"std" => "3",
									"type" => "select",
									"options" => $limit); 
			}
		}
				
							
		$opt = apply_filters( 'cv_social_media', $opt);			

		return $opt; 
}

?>
